import request from '@/utils/request'

// 按订单查询订单商品明细
export function listOrderGoods(query) {
  return request({
    url: '/order/orderGoods/list',
    method: 'get',
    params: query
  })
}

import request from '@/utils/request'

// 查询订单商品表管理列表
export function listOrderGoods(query) {
  return request({
    url: '/order/orderGoods/list',
    method: 'get',
    params: query
  })
}

// 查询订单商品表管理详细
export function getOrderGoods(orderGoodsId) {
  return request({
    url: '/order/orderGoods/' + orderGoodsId,
    method: 'get'
  })
}

// 新增订单商品表管理
export function addOrderGoods(data) {
  return request({
    url: '/order/orderGoods',
    method: 'post',
    data: data
  })
}

// 修改订单商品表管理
export function updateOrderGoods(data) {
  return request({
    url: '/order/orderGoods',
    method: 'put',
    data: data
  })
}

// 删除订单商品表管理
export function delOrderGoods(orderGoodsId) {
  return request({
    url: '/order/orderGoods/' + orderGoodsId,
    method: 'delete'
  })
}


